package com.tencent.qf.team.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tencent.qf.team.dal.TyDistributeSaleSharerCommissionBill;
import com.tencent.qf.team.dal.TyDistributeSaleSharerCommissionBillKey;
import com.tencent.qf.team.dto.db.SalesSharerCommissionBillStatusDo;
import com.tencent.qf.team.dto.db.SharerOutOrderSumDo;
import com.tencent.qf.team.dto.response.SharerCommissionDBDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@DS("orderdb")
@Mapper
public interface TyDistributeSaleSharerCommissionBillDao {

    TyDistributeSaleSharerCommissionBill selectByPrimaryKey(TyDistributeSaleSharerCommissionBillKey key);

    /**
     * 查询小b预估佣金
     *
     * @param sharerOutOrderSumDo
     * @return
     */
    SharerCommissionDBDto commissionSum(SharerOutOrderSumDo sharerOutOrderSumDo);

    /**
     * @param sharerOutOrderSumDo
     * @return
     */
    List<SalesSharerCommissionBillStatusDo> commissionBillStatusList(SharerOutOrderSumDo sharerOutOrderSumDo);
}